<!doctype html>
<html>
		<head>
		<meta charset="utf-8">
		<title>房屋详情</title>
		<?php echo $this->render('/_include/_header');?>

		<script type="text/javascript">
var myScroll;
var pageNo = 1;
var type = 0;
function loaded () {
    $(window).scroll(function(e) {

        if ($(document).scrollTop() >= $(document).height() - $(window).height()) {
            $('#pullUp').show();
            var h = $('#pullUp').outerHeight(true);
            $(document).scrollTop($(document).height() - $(window).height())
            
            setTimeout(function(){
				if (type == 0){
						    get_number();
						}else{
						   get_details();
						}
            },500);
        }
    });
		change_tab(1);
		get_details();
}
	function get_number(refresh){
			if(refresh){
				 page = 0;
			}
			
			param = {};
			ScrollData({
				ajax_url: '#',
				lastpage_tips: true,
				div: '.number-list ',
				data: param,
					},function(data){
	
					});
		}
			function get_details(refresh){
				//$('.no-class').addClass('uhide');
				//page = pageNo ? pageNo : page;
			if(refresh){
				 page = 0;
			}
				ScrollData({
					lastpage_tips: true,
					div: '.details-list',
					data: param,
				},function(data){
					
				});
			}
			function change_tab(i) {
			// $('.page').eq(i).removeClass('uhide').siblings().addClass('uhide');
			    if(i == 1){
					$('.page1').removeClass('uhide');
					$('.page2').addClass('uhide');
					type=1;
					//alert(i);
			    }else{
					$('.page1').addClass('uhide');
					$('.page2').removeClass('uhide');
					type=0;
					//alert(i);
			    }
			}
	
		</script>
		</head>

		<body class="bg-eeeeee">
<div class="header-fixed">
          <header>
    <div id="header" class="fixed">
              <div class="btn-return ub-img5 " onClick="goback();"></div>
              <h1><span onClick="location.reload();">函数青年公寓</span></h1>
              <div class="btn-forward"></div>
            </div>
  </header>
        </div>
<div id="wrapper2" class="loading-text" style="padding-top:3em;">
          <div id="scroller2">
    <ul id="ul">
              <div class="housing-banner"></div>
              <div class="house-block bg-fff">
        <div class="ub ">
                  <div class="ub-f1 ub select-block margin-r-10 margin-b-10">
            <div class="ub-f1">房间价格</div>
            <span class="icon-select ub-f1"></span></div>
                  <div class="ub-f1 ub select-block">
            <div class="ub-f1">房间朝向</div>
            <span class="icon-select ub-f1"></span></div>
                </div>
        <div class="ub ">
                  <div class="ub-f1 ub select-block margin-r-10 margin-b-10">
            <div class="ub-f1">设计主题</div>
            <span class="icon-select ub-f1"></span></div>
                  <div class="ub-f1 ub select-block">
            <div class="ub-f1">入住时间</div>
            <span class="icon-select ub-f1"></span></div>
                </div>
      </div>
              <div class="housing-switch margin-body bg-fff uc-a1">
        <div class="ub">
                  <input type="radio" class="uhide" name="switch" id="question1" value="0">
                  <div class="tx-middle half"  onclick="zy_for(event);change_tab(1);get_number(1);">楼层房间号</div>
                  <input type="radio" class="uhide" name="switch" id="question2" value="1" checked>
                  <div class="tx-middle half"  onclick="zy_for(event);change_tab(0);get_details(1);">户型介绍</div>
                </div>
      </div>
              <div class="page1 uhide">
              <div class="number-list">
                  <div class="floor margin-b-10">
            <div class="floor-checked ub t-wh ulev1">1F
                      <div class="ub-f1 icon-floor icon-floor-checked"></div>
                    </div>
            <div class="bg-fff floor-details ub bor-b-e0e0e0"><span class="housing-number-yes t-wh">0105</span> <span class="c-535353 margin-l-10 margin-r-10">坐南朝北</span> <span class="c-535353">9㎡</span><span class="c-e82828 money ub-f1" style="text-align:right;">1000元/月</span></div>
            <div class="bg-fff floor-details ub bor-b-e0e0e0"><span class="housing-number-no t-wh">0105</span> <span class="c-535353 margin-l-10 margin-r-10">坐南朝北</span> <span class="c-535353">9㎡</span><span class="c-e82828 money ub-f1" style="text-align:right;">1000元/月</span></div>
          </div>
                  <div class="floor margin-b-10">
            <div class="floor-normal c-535353 ub t-wh ulev1">2F
                      <div class="ub-f1 icon-floor icon-floor-normal"></div>
                    </div>
          </div>
                  <div class="floor margin-b-10">
            <div class="floor-normal c-535353 ub t-wh ulev1">3F
                      <div class="ub-f1 icon-floor icon-floor-normal"></div>
                    </div>
          </div>
                  <div class="floor margin-b-10">
            <div class="floor-normal c-535353 ub t-wh ulev1">4F
                      <div class="ub-f1 icon-floor icon-floor-normal"></div>
                    </div>
          </div>
                </div>
        
      </div>
              <div class="page2  uhide">
              <div class="details-list ">
                  <div class="housing-introduction bg-fff">
            <div class="bor-b-e0e0e0 title ulev1 c-5e5e5e">房屋配套</div>
            <div class="bor-b-e0e0e0">
                      <div class="margin-body c-535353">
                <div class="ub icon-item">
                          <div class="ub-f1 ub"><span class="icon-refrigerator item "></span><span class="ulev-1">冰箱</span></div>
                          <div class="ub-f1 ub"><span class="icon-washer item "></span><span class="ulev-1">洗衣机</span></div>
                          <div class="ub-f1 ub"><span class=" icon-wardrobe item"></span><span class="ulev-1">衣柜</span></div>
                        </div>
                <div class="ub icon-item">
                          <div class="ub-f1 ub"><span class="icon-tv item "></span><span class="ulev-1">电视</span></div>
                          <div class="ub-f1 ub"><span class="icon-sofa item "></span><span class="ulev-1">沙发</span></div>
                          <div class="ub-f1 ub"><span class="icon-kettle item"></span><span class="ulev-1">热水壶</span></div>
                        </div>
              </div>
                    </div>
            <div class="bor-b-e0e0e0 title ulev1 c-5e5e5e">户型介绍</div>
            <div class=" bor-b-e0e0e0">
                      <div class="margin-body">
                <p class="ulev-1 c-535353">超大loft，客厅，卧室，衣帽间应有尽有，四米的大窗
                          总能让明亮的阳光撒满客厅，清风也会在这空间中自如
                          穿行，窗边或许有爬山虎探出嫩绿的头，亲近自然就是
                          这么简单。</p>
                <div class="margin-b-10 margin-t-10 housing-img"> </div>
              </div>
                    </div>
            <div class="bor-b-e0e0e0 title ulev1 c-5e5e5e">位置交通</div>
            <div class=" bor-b-e0e0e0">
                      <div class="margin-body">
                <p class="ulev-1 c-535353">地点：北京木樨地</p>
                <div class="margin-b-10 margin-t-10 traffic-img"> </div>
              </div>
                    </div>
          </div>
                </div>
        
      </div>
              <div class=" margin-body">
        <div class="submit-block ub tx-middle uc-a1"> <a href="" class="t-wh ulev1">预约看房</a> </div>
      </div>
            </ul>
  </div>
        </div>
<?php echo $this->render('/_include/_footer');?> 
<script>
$(function(){
	$("#question1").prop("checked",true);
	$("#question2").prop("checked",false);  
	loaded();
    Dbug(1);
   	
});

</script>
</body>
</html>
